# -*- coding:UTF-8 -*-
from sys import argv
import logging

from flask import request, url_for, redirect, render_template

from etc.config import config
from application import init_app


__author__ = 'Jone Wang'

__doc__ = """

"""

logger = logging.getLogger(__name__)


if len(argv) > 1 and argv[1] == "test":
    config['default'] = config['test']


app = init_app()


if __name__ == '__main__':
    app.logger.info('Server start..')
    app.run("0.0.0.0", 50231, debug=True)
